'use strict';

var commonModels = angular.module('commonModels');

commonModels.factory('Galleries', ['$resource', 'Constant', function($resource, Constant){
    return $resource(Constant.ApiPath + 'galleryOpt/:action', {}, {                    //storeBySubId
        opt: {method:'GET', params:{action: true, subId: true}}
    });
}]);
commonModels.factory('Gallery', ['$resource', 'Constant', function($resource, Constant){
    return $resource(Constant.ApiPath + 'gallery/:galleryId', {galleryId:'@id'}, {

    });
}]);

commonModels.factory('Pictures', ['$resource', 'Constant', function($resource, Constant){
    return $resource(Constant.ApiPath + 'pictureOpt/:action', {}, {                    //storeBySubId
        opt: {method:'GET', params:{action: true, subId: true}}
    });
}]);
commonModels.factory('Picture', ['$resource', 'Constant', function($resource, Constant){
    return $resource(Constant.ApiPath + 'picture/:pictureId', {pictureId:'@id'}, {

    });
}]);
